package com.jml.oom;


/**
 * @author:jml
 * @date: 2019/5/8 17:10
 * @description：
 */
public class StackOverFlowDemo {

    public static void main(String[] args) {
        stackOverFlowError();
    }

    private static void stackOverFlowError() {
        stackOverFlowError();
    }
    private static void heapOverFlowError() {
        String str = "";
        while(true){
            str=str+ str+"12";
        }
    }
}
